/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: app2022 - Var4
 * <p>Powered by webrx On 2022-01-05 10:08:22
 * <p>Created by IntelliJ IDEA
 *
* @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Var4 {
    public static void main(String[] args) {
        int a = Integer.parseInt(args[0]);
        int b = Integer.parseInt(args[1]);
        // % 求余数/ 求整商 + - *
        if (a % b == 0) {
            System.out.printf("%d ÷ %d = %d%n", a, b, a / b);
        } else {
            System.out.printf("%d ÷ %d = %d ... %d%n", a, b, a / b, a % b);
        }

        int x = 6;
        int y = 5;
        double c = 1.0 * x / y;
        System.out.printf("%.3f", c);
    }
}
